<!DOCTYPE html>
<html lang="en">

<!-- Mirrored from leviatz.com/flatpoint/login-v4.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 26 Jul 2013 20:07:23 GMT -->
<head>
<meta charset="utf-8">
<title>Create New Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<link href="assets/css/stylesheet.css" rel="stylesheet">
<link href="assets/icon/font-awesome.css" rel="stylesheet">
<link
	href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800'
	rel='stylesheet' type='text/css'>

<!-- Le fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="assets/img/apple-touch-icon-144-precomposed.html">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="assets/img/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="assets/img/apple-touch-icon-72-precomposed.html">
<link rel="apple-touch-icon-precomposed"
	href="assets/img/apple-touch-icon-57-precomposed.html">
<link rel="shortcut icon" href="assets/img/favicon.png">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
    <![endif]-->
</head>
	<?php
	session_start ();
	
	// Include database connection details
	require_once ('inc/config.inc');
	
	// Connect to mysql server
	$link = mysql_connect ( DB_HOST, DB_USER, DB_PASSWORD );
	if (! $link) {
		die ( 'Failed to connect to server: ' . mysql_error () );
	}
	
	// Select database
	$db = mysql_select_db ( DB_DATABASE );
	if (! $db) {
		die ( "Unable to select database" );
	}
	?>
  <body class="blue-login">

	<div class="login-container-register">
	<?php if(isset($_GET['confirm']) && $_GET['confirm']=='success') { ?><div
						class="alert alert-success">
						<strong>SUCCESS: </strong> Email Confirmation Successful
					</div> <?php } ?>
                    <?php if(isset($_GET['register']) && $_GET['register']=='success') { ?><div
						class="alert alert-success">
						<strong>SUCCESS: </strong> Registered Successfully. <br> Check
						your email to complete registration.
					</div> <?php } ?>                    
                    <?php if(isset($_GET['check_user']) && $_GET['check_user']=='alreadyexists') { ?><div
						class="alert alert-danger">
						<strong>FAILURE: </strong> User already exists.
					</div> <?php } ?>
                    <?php if(isset($_GET['reset']) && $_GET['reset']=='success') { ?><div
						class="alert alert-success">
						<strong>SUCCESS: </strong> Password Reset Successful. <br>A new
						password has been sent to your email.
					</div> <?php } ?>
                    <?php if(isset($_GET['log_err']) && $_GET['log_err']=='true') { ?><div
						class="alert alert-danger">
						<strong>FAILED: </strong> Not Logged In <br>Wrong Email/Password
						combination.
					</div> <?php } ?>
		<div class="login-header bordered">
			<h4>Create New Profile</h4>
		</div>
		<form id="registerForm" action="execute/register.php" method="post">
			<div class="login-field">
				<label for="username">Business Name</label> <input type="text"
					name="businessname" id="username" class="required"
					placeholder="e.g. Your office name, shop name etc..." required>
			</div>
			<div>
				<label for="password">URL</label>
				<p>
					appointme.com/<input type="text" class="span2" class="required"
						name="urlprefix" id="password" placeholder="your domain name"
						required>
				</p>
			</div>
			<p></p>
			<div>
				<label for="username">Category</label>
				<p>
					<select style="width: 290px;" name="category" class="required">
						<option>Choose a category...</option>
                                    		<?php
																																						$qry = mysql_query ( "SELECT * FROM categories order by name" );
																																						while ( $row = mysql_fetch_array ( $qry ) ) {
																																							?>
                                    			<option
							value="<?php echo $row['id']; ?>"><?php echo $row['name']?></option>
                                    			<?php
																																						}
																																						?>
                                    		<option value="999">Othres...</option>
					</select>
				</p>
			</div>
			<hr>
			<div class="login-field">
				<label for="username">Email</label> <input type="email" name="email"
					id="username" class="email required" placeholder="e.g. example@domain.com" required> <i
					class="icon-user"></i>
			</div>
			<div class="login-field">
				<label for="password">Password</label> <input type="password"
					name="password" class="password" id="password" placeholder="Password" required> <i
					class="icon-lock"></i>
			</div>
			<div class="login-field">
				<label for="password">Retype Password</label> <input type="password"
					name="cpassword" class="cpassword" id="cpassword" placeholder=" Retype Password"
					required> <i class="icon-lock"></i>
			</div>
			<hr>

			<div class="login-field">
				<label for="username">First Name</label> <input type="text"
					name="firstname" id="username" placeholder="e.g. John" required>
			</div>
			<div class="login-field">
				<label for="username">Last Name</label> <input type="text"
					class="input-large" name="lastname" id="username"
					placeholder="e.g. Smith" required>
			</div>
			<div class="login-button clearfix">
				<button type="submit" name="register"
					class="pull-right btn btn-block blue">
					RIGESTER <i class="icon-arrow-right"></i>
				</button>
			</div>
			<div class="forgot-password">
				<p>
					Already Member? <a href="login.php">Login</a> OR go to <a
						href="index.php">Home</a>
				</p>
			</div>
		</form>
	</div>

	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="js/jquery-1.10.2.js"></script>
	<script src="js/jquery-ui-1.10.3.js"></script>
	<script src="js/bootstrap.js"></script>

	<script src="js/library/jquery.collapsible.min.js"></script>
	<script src="js/library/jquery.mCustomScrollbar.min.js"></script>
	<script src="js/library/jquery.mousewheel.min.js"></script>
	<script src="js/library/jquery.uniform.min.js"></script>

	<script
		src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCL6XtCGot7S7cfxnO6tRfeZx9kLQQRMtA&amp;sensor=false"></script>
	<script src="js/library/jquery.sparkline.min.js"></script>
	<script src="js/library/chosen.jquery.min.js"></script>
	<script src="js/library/jquery.easytabs.js"></script>
	<script src="js/library/flot/excanvas.min.js"></script>
	<script src="js/library/flot/jquery.flot.js"></script>
	<script src="js/library/flot/jquery.flot.pie.js"></script>
	<script src="js/library/flot/jquery.flot.selection.js"></script>
	<script src="js/library/flot/jquery.flot.resize.js"></script>
	<script src="js/library/flot/jquery.flot.orderBars.js"></script>
	<script src="js/library/maps/jquery.vmap.js"></script>
	<script src="js/library/maps/maps/jquery.vmap.world.js"></script>
	<script src="js/library/maps/data/jquery.vmap.sampledata.js"></script>
	<script src="js/library/jquery.autosize-min.js"></script>
	<script src="js/library/charCount.js"></script>
	<script src="js/library/jquery.minicolors.js"></script>
	<script src="js/library/jquery.tagsinput.js"></script>
	<script src="js/library/fullcalendar.min.js"></script>
	<script src="js/library/footable/footable.js"></script>
	<script src="js/library/footable/data-generator.js"></script>

	<script src="js/library/bootstrap-datetimepicker.js"></script>
	<script src="js/library/bootstrap-timepicker.js"></script>
	<script src="js/library/bootstrap-datepicker.js"></script>
	<script src="js/library/bootstrap-fileupload.js"></script>
	<script src="js/library/jquery.inputmask.bundle.js"></script>
	<script type="text/javascript"
		src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
		<script type="text/javascript"
		src="assets/js/library/jquery.validate.js"></script>
	<script type="text/javascript">
    $(function(){
    	
    	var $validator = $("#registerForm").validate({
			  rules: {
			    password:{
					minlength: 6,
					maxlength:40
				    },
				    cpassword:{
						equalTo: ".password",
					    },
			    	    
			  }
			});
    });
    </script>
</body>

<!-- Mirrored from leviatz.com/flatpoint/login-v4.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 26 Jul 2013 20:07:23 GMT -->
</html>
